package ${package}.domain.sil;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.annotation.JsonFormat;

<#list imports as i>
import ${i!};
</#list>

/**
 * ${tableComment}
 *
 * @author ${author} ${email}
 * @since ${version} ${date}
 */
@Data
@EqualsAndHashCode()
@TableName("${tableName}")
public class ${ClassName} {

<#list columnList as column>
	<#if column.columnComment!?length gt 0>
	/**
	 * ${column.columnComment}
	 * @mock 111111
	 */
	</#if>
	<#if "create_by,create_time,del_flag,version"?split(",")?seq_contains(column.columnName)>
	@TableField(fill = FieldFill.INSERT)
	</#if>
	<#if "update_by,update_time"?split(",")?seq_contains(column.columnName)>
	@TableField(fill = FieldFill.INSERT_UPDATE)
	</#if>
	<#if column.columnName == "version">
	@Version
	</#if>
	<#if column.columnName == "del_flag">
	@TableLogic
	</#if>
	<#if column.pk>
	@TableId(type = IdType.AUTO)
	</#if>
	<#if column.attrType == 'Long'>
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	</#if>
	private ${column.attrType} ${column.attrName};

</#list>
}